#%%
import cv2 as cv
import numpy as np

img = np.random.randint(10,99,[5,5],dtype=np.uint8)

print("img=\n",img)

print("读取像素点img.item(3,2)=",img.item(3,2))

img.itemset((3,2),99)

print("读取像素点img.item(3,2)=",img.item(3,2))


